package com.mapper;

import com.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface UserMapper {
    @Select("select * from user where phone=#{phone}")
    User selectByPhone(String phone);

    @Update("update user set name=#{name},head=#{head} where phone=#{phone}")
    void update(User user);
}
